<?php 
namespace Admin\Model;
use Think\Model;
class TypeModel extends Model{
   protected $_validate = array(
        array('type_name','require','验证码必须！'), //默认情况下用正则进行验证 
    );
}

?>